DATAOBJ= dataobj/els_func.o dataobj/els_string.o dataobj/els_unit.o dataobj/els_object.o 
COMPILER= compiler/els_codegen.o compiler/els_lex.o  compiler/els_parser.o  
VMAPI= vm/api/els_api.o  
VMCORE=  vm/core/els_mem.o vm/core/els_vmcore.o vm/core/els_vmhost.o vm/core/els_heap.o vm/core/els_gc.o
LIBS= lib/els_libload.o
OBJS= main.o $(DATAOBJ) $(COMPILER) $(VMAPI) $(VMCORE) $(LIBS)

CFLAGS= -O0 -Wall  -std=c89   -DELS_OS_LINUX  -I include 
CC=gcc
T= els

all:	$T 

$T:	$(OBJS)
	$(CC) -o $@ $(OBJS) -rdynamic -lm -ldl 
#-Wl,-gc-sections
clean:
	rm -rf $T $(OBJS)  core core.* 

